package lormi.meipin.entity;

import java.util.Date;

public class CheckCode {
    private Integer id;

    private Integer code;

    private String mobile;

    private Date createtime;
    
    public CheckCode(){}
    
    public CheckCode(String phone,Integer code){
    	this.mobile = phone;
    	this.code = code;
    	this.createtime = new Date();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
}